# -*- python -*-
# ex: set syntax=python:

# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# See master.experimental/slaves.cfg for documentation.

heartbeat_slaves = [
  {
    'master': 'ChromiumSwarm',
    'builder': ['Heartbeat', 'Heartbeat Canary'],
    'hostname': 'vm944-m1',
    'os': 'linux',
    'version': 'lucid',
    'bits': '64',
    'subdir': str(j),
  } for j in xrange(20)
]

real_slaves = [
  {
    'master': 'ChromiumSwarm',
    'builder': 'Linux Swarm Tests',
    'hostname': 'vm323-m1',
    'os': 'linux',
    'version': 'lucid',
    'bits': '64',
  },
  {
    'master': 'ChromiumSwarm',
    'builder': 'Linux Swarm Tests (dbg)',
    'hostname': 'vm324-m1',
    'os': 'linux',
    'version': 'lucid',
    'bits': '64',
  },
  {
    'master': 'ChromiumSwarm',
    'builder': 'Windows Swarm Tests',
    'hostname': 'vm836-m1',
    'os': 'win',
    'version': 'win7',
    'bits': '64',
  },
  {
    'master': 'ChromiumSwarm',
    'builder': 'Windows Swarm Tests (dbg)',
    'hostname': 'vm882-m1',
    'os': 'win',
    'version': 'win7',
    'bits': '64',
  },
  {
    'master': 'ChromiumSwarm',
    'builder': 'Mac Swarm Tests',
    'hostname': 'mini10-m1',
    'os': 'mac',
    'version': '10.6',
    'bits': '64',
  },
  {
    'master': 'ChromiumSwarm',
    'builder': 'Mac Swarm Tests (dbg)',
    'hostname': 'vm601-m1',
    'os': 'mac',
    'version': '10.8',
    'bits': '64',
  },
  {
    'master': 'ChromiumSwarm',
    'builder': 'Windows deterministic build',
    'hostname': 'win12-c1',
    'os': 'win',
    'version': 'win7',
    'bits': '64',
  },
  {
    'master': 'ChromiumSwarm',
    'builder': 'Windows Clang deterministic build',
    'hostname': 'win13-c1',
    'os': 'win',
    'version': 'win7',
    'bits': '64',
  },
  {
    'master': 'ChromiumSwarm',
    'builder': 'Linux deterministic build',
    'hostname': 'slave0-c1',
    'os': 'linux',
    'version': 'lucid',
    'bits': '64',
  },
  {
    'master': 'ChromiumSwarm',
    'builder': 'Mac deterministic build',
    'hostname': 'vm610-m1',
    'os': 'mac',
    'version': '10.9',
    'bits': '64',
  },
  {
    'master': 'ChromiumSwarm',
    'builder': 'Android deterministic build',
    'hostname': 'slave1-c1',
    'os': 'linux',
    'version': 'lucid',
    'bits': '64',
  },
]

win_slaves = [
  {
    'master': 'ChromiumSwarmSlaves',
    'hostname': 'vm%d-m1' % i,
    'builder': 'win',
    'os': 'win',
    'version': 'win7',
    'bits': '64',
  } for i in range(300, 310)
]

linux_slaves = [
  {
    'master': 'ChromiumSwarmSlaves',
    'hostname': 'swarmcanary%d-c4' % i,
    'builder': 'linux',
    'os': 'linux',
    'version': 'precise',
    'bits': '64',
  } for i in range(1, 11)
]

mac_vm_slaves = [
  {
    'master': 'ChromiumSwarmSlaves',
    'hostname': 'vm%d-m1' % i,
    'builder': 'mac',
    'os': 'mac',
    'version': '10.8',
    'bits': '64',
  } for i in [613, 625, 637, 639, 648]
]

slaves = (
    heartbeat_slaves + real_slaves + win_slaves + linux_slaves + mac_vm_slaves)
